<head>
<meta name='layout' content='main' />
<title>Create or Link Account</title>

</head>

<body>
	<div class="header">

		<h1 class="page-title">
			<g:message code="springSecurity.oauth.registration.link.not.exists"
				default="No user was found with this account."
				args="[session.springSecurityOAuthToken.providerName]" />
		</h1>
		<ul class="breadcrumb">
			<li><a href="${createLink(uri: '/')}"><g:message
						code="default.home.label" /></a></li>
			<li class="active">Create Acccount</li>
		</ul>

	</div>
	<g:if test='${flash.error}'>
			<div class="errors">
				${flash.error}
			</div>
		</g:if>
	<g:hasErrors bean="${createAccountCommand}">
			<div class="errors">
				<g:renderErrors bean="${createAccountCommand}" as="list" />
			</div>
		</g:hasErrors>
	<div class="main-content">

		<g:form class="form-horizontal" action="createAccount" method="post" autocomplete="off">
			<div class="form-group">
				<label class="col-sm-2 control-label" for="parent"> Name </label>
				<div class="col-sm-10">
					<g:textField name='username'  class="col-sm-3"
						value='${createAccountCommand?.username}' />
						
						

				</div>
				
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="parent"> Email</label>
				<div class="col-sm-10">
					<g:textField name='email' class="col-sm-3" 
						value='${createAccountCommand?.email}' />

				</div>
				
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="parent"> Facebook Url</label>
				<div class="col-sm-10">
					<g:textField name='facebookUrl'  class="col-sm-3"
						value='${createAccountCommand?.facebookUrl}' />

				</div>
				
			</div>
			
			<div class="form-group">

				<div class="col-sm-2"></div>
				<div class="col-sm-8 center-block">
					<div class="center-block">
						<button type="submit" class="btn btn-primary">Create</button>
						
					</div>

				</div>
				<div class="col-sm-2"></div>

			</div>
		</g:form>
	</div>
	

</body>
